<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="cancel()">&times;</button>
    <p class="modal-title panel-title-size">添加用户</p>
</div>
<div class="modal-body panel-body">
    <form class="form-horizontal form-validation" name="addUserForm">
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">用户名：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="userName" class="form-control" ng-model="addData.userName" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
          <div class="form-group" style="display:none">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">环境：</label>
                <div class="col-lg-10 control-input"  ng-init="addData.defaultEnvId=1">
                    <input type="text" value="{{envId}}" name="env" class="form-control"  ng-model="addData.defaultEnvId" validator="required">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">邮箱：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="email" class="form-control" ng-model="addData.userMail" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">电话：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="phone" class="form-control" ng-model="addData.userPhone" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">公司：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="company" class="form-control" ng-model="addData.userCompany" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="col-lg-2 control-label">初始密码：</label>
                <div class="col-lg-10 control-input">
                    <input type="text" name="company" class="form-control" ng-model="addData.userPass" maxlength="12" maxlength-error-message="最多输入64个字符">
                </div>
            </div>
        </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-primary" validation-submit="addUserForm" ng-disabled="addUserForm.$invalid" ng-click="ok()">确认</button>
    <button class="btn btn-default" ng-click="cancel()">取消</button>
</div>